package com.xbongbong.pro.businessrule.pojo.dto;

import com.xbongbong.paas.domain.entity.PaasFormDataEntity;
import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.pojo.AttrValuePojo;
import com.xbongbong.paas.pojo.BusinessRulesPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/10/14 17:30
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ActiveRuleByUpdateBatchDTO extends BaseDTO {

    private static final long serialVersionUID = 6707901419315696018L;
    /**
     * 规则
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<BusinessRulesPoJo> ruleList;

    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> formDataIdList;

    @Getter(onMethod_ = {@QueryIgnore})
    private Integer saasMark;

    @Getter(onMethod_ = {@QueryIgnore})
    private Integer businessType;

    @Getter(onMethod_ = {@QueryIgnore})
    private Long formId;

    private String attr;

    private Object value;

    /**
     * 数据id
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer editFlag;

    private List<PaasFormDataEntityExt> oldDataList;

    /**
     * 批量更新的字段
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<AttrValuePojo> fieldEditedList;

    public ActiveRuleByUpdateBatchDTO(){
        formDataIdList = new ArrayList<>();
    }
}
